
template.defaults.imports.dateFormat = function(date, format){
    if(date){
        return new Date(date).pattern(format);
    }else{
        "";
    }
    
};